#ifndef COURSEMESSAGE_H
#define COURSEMESSAGE_H

#include <QDialog>
#include <QString>
#include <QCompleter>
#include <QMessageBox>
#include <QSqlTableModel>
#include <QSqlRecord>
#include <QSqlQuery>
#include <QModelIndex>

namespace Ui {
class CourseMessage;
}

class CourseMessage : public QDialog
{
    Q_OBJECT

public:
    explicit CourseMessage(QWidget *parent = 0);
    ~CourseMessage();
    void SetWidth();

private slots:
    void on_query_clicked();
    void on_add_clicked();
    void on_delete_2_clicked();
    void on_revert_clicked();
    void on_conserve_clicked();
    void on_tableView_clicked(QModelIndex index);

private:
    Ui::CourseMessage *ui;
    QSqlTableModel *model;
    //QModelIndex index;
};

#endif // COURSEMESSAGE_H
